package com.itrip.dao.ex;

import com.itrip.dto.OrderInfoDTO;
import com.itrip.dto.OrderPayDTO;
import com.itrip.vo.pay.OrderInfoVo;
import com.itrip.vo.pay.OrderPayStatusVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
     Integer CheckOrder(@Param("id") Long id);

     OrderPayDTO sendTradeNo(@Param("tradeNo") String tradeNo);

    Integer modifyOrderStatus(OrderPayStatusVo orderPayStatusVo);

    List<OrderInfoDTO> selectOrderInfo(@Param("orderInfoVo") OrderInfoVo orderInfoVo,@Param("start") int start);

    int selectCountOfOrderInfo(@Param("orderInfoVo")OrderInfoVo orderInfoVo);

    int selectOrderStatus(@Param("roomId") Long roomId);

    Integer getHotelId(@Param("orderNO") Long orderNo);

    Integer setOrderInvalidate(@Param("orderNo")String orderNo);

    int deleteOrder(@Param("orderNo") String orderNo);
}
